<template>
	<view>
		<view style="height: 200rpx;"></view>
		<swiper vertical="true" current="1" style="background-color: aliceblue;" @animationfinish="onSwipeChange">
			<swiper-item v-for="(item,index) in swArray">
				<view style="height: 300rpx;width: 90%;background: rosybrown;margin-left: 5%;">
					{{item}}
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				swArray: [2, 3, 4]


			}
		},
		methods: {
			onSwipeChange(e) {
				let current = e.detail.current;
				// console.log(e);
				console.log(current);
			}
		}
	}
</script>

<style>

</style>